package com.hyc.MySpring.entity;

import com.hyc.MySpring.Annotation.Autowired;
import com.hyc.MySpring.Annotation.Component;
import com.hyc.MySpring.Annotation.Qualifer;
import com.hyc.MySpring.Annotation.Value;
import lombok.Data;

/**
 * @projectName: SpringIOC
 * @package: com.hyc.MySpring.entity
 * @className: Account
 * @author: 冷环渊 doomwatcher
 * @description: TODO
 * @date: 2022/3/24 19:01
 * @version: 1.0
 */

@Component()
@Data
public class Account {
    public Account() {
    }

    @Value("1")
    private Integer id;
    @Value("张三")
    private String name;
    @Value("12")
    private Integer age;
    @Autowired
    @Qualifer("myOrder")
    private Order myorder;
}
